package com.eric.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * @author:Eric
 * @date:2021/7/7
 */
@Data
@TableName(value = "product")
@Accessors(chain = true)
public class Product {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String productCode;

    private String productName;

    private Long total;

    private BigDecimal price;
}
